//
//  ViewController.m
//  YHGoods IOS Example
//
//  Created by yanHu on 2024/4/13.
//

#import "ViewController.h"
#import "YHGoodsViewController.h"
#import <Masonry/Masonry.h>

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    YHGoodsViewController *vc = [[YHGoodsViewController alloc] init];
    [self addChildViewController:vc];
//    vc.view.frame = CGRectMake(100, 200, 200, 200);
    [self.view addSubview:vc.view];
    [vc.view mas_makeConstraints:^(MASConstraintMaker *make) {
        make.center.mas_equalTo(self.view);
        make.size.mas_equalTo(CGSizeMake(300, 300));
    }];
    // Do any additional setup after loading the view.
}

- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
    YHGoodsViewController *vc = [[YHGoodsViewController alloc] init];
    [self.navigationController pushViewController:vc animated:YES];
}


@end
